package com.lz.sports.bean

import com.lz.library.extension.resString
import com.lz.sports.R

//项目与检录成绩
class ExamResultWithInspect(val result: ExamResult, val inspect: ExamInspect?) {

    //是否缺考
    fun isLack(): Boolean = inspect == null || inspect.isLack()

    fun projectName(): String = result.projectName

    fun examTime(): String = if (isLack()) "" else inspect!!.examTimeStr()

    fun examResult(): String = if (isLack()) R.string.lack.resString() else inspect!!.score.toString()
}